package com.wh.org.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wh.org.dto.DepartmentDto;
import com.wh.org.pojo.Department;

import java.util.List;

public interface IDepartmentService   {
    //增 删 改 查 根据id查  分页查 批量删

    void add(Department department);
    void del(Long id);
    void upd(Department department);
    List<Department> findAll();
    Department findById(Long id);

    IPage<Department> findByPage(DepartmentDto departmentDto);
    void patchDel(Long[] ids);

    List<Department> deptTree();

}
